package net.nampham.visioncontrol.model;

public class NativeTest {
	public native String stringFromJNI();
	
	public static String GetString(){
		int abc=0;
		abc = 1;
		android.util.Log.d("visioncontrol", "before call native");
		String ret="";
		NativeTest obj = new NativeTest();
		try{
			ret = obj.stringFromJNI();
		}
		catch(Exception e){
			android.util.Log.d("visioncontrol", "error!");			
			android.util.Log.d("visioncontrol", android.util.Log.getStackTraceString(e));
		}
		android.util.Log.d("visioncontrol", "after call native");
		return ret;
	}
	
	static {
		android.util.Log.d("visioncontrol", "before load lib");
        System.loadLibrary("hello-jni");
		android.util.Log.d("visioncontrol", "after load lib");
    }
}
